//地图代码
;(function(){
	var address = document.querySelector('#address');
	var txt = address.innerText;
	address.href = "http://map.baidu.com/mobile/webapp/search/search/qt=s&wd="+txt+"/vt=map";
})();
//星星评分代码
;(function(){
	var star = document.querySelector('.info-star');
	var stars = star.getElementsByTagName('span');
	var num = star.dataset.star;
	for(var i=0,j=stars.length;i<j;i++){
		if(num<=i){
			stars[i].className = "mui-icon mui-icon-star";
		}else if(num<i+1){
			stars[i].className = "mui-icon mui-icon-starhalf";
		}else{
			stars[i].className = "mui-icon mui-icon-star-filled";
		}
	}
})();
